package com.example.pei.papa.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

import com.aspsine.swipetoloadlayout.SwipeLoadMoreTrigger;
import com.aspsine.swipetoloadlayout.SwipeTrigger;

/**
 * Created by Pei on 2017/11/17.
 */

public class CustomRefreshFootView extends TextView implements SwipeTrigger, SwipeLoadMoreTrigger {
    public CustomRefreshFootView(Context context) {
        super(context);
    }

    public CustomRefreshFootView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public void onLoadMore() {
        setText("正在拼命加载数据...");
    }

    @Override
    public void onPrepare() {
        setText("释放加载");
    }

    @Override
    public void onSwipe(int i, boolean b) {

    }

    @Override
    public void complete() {
        setText("");
    }


    @Override
    public void onRelease() {
    }


    @Override
    public void onReset() {

    }


}
